<include file="./Tpl/Public/header.html" />
<h1>
    <span class="action-span1">{$current_operation[g][title]}->{$current_operation[m][title]}->{$current_operation[a][title]}</span>
    <foreach name="list_main_menu" item="info">
    <span class="action-span"><a href="{$info[url]}" target="{$info[target]}">{$info[title]}</a></span>
    </foreach>
    <div style="clear:both"></div>
</h1>

<div class="list-div">
<link type="text/css" href="__PUBLIC__/js/jquery-treeview/jquery.treeview.css" rel="stylesheet" />	
<script type="text/javascript" src="__PUBLIC__/js/jquery-treeview/jquery.treeview.js"></script>
<ul id="product_cat_tree" class="filetree">{$finances_cat_tree}</ul>
<script language="JavaScript">
$("#product_cat_tree").treeview({
	persist: "location",
	collapsed: true,
	unique: false,
	control: "#treecontrol"
});
</script>
</div>
<div id="dialog_delete" style="color:#F00; font-size:13px; vertical-align: middle;">"彻底删除"的数据是不可恢复的，请慎用！</div>
<script type="text/javascript">
function dialog_add(){
	dialog({'title':'添加科目',w:430,h:280},'kmsz_add');
}
function dialog_edit(id){
	dialog({'title':'修改科目',w:430,h:280},'kmsz_edit','id='+id); 
}
//删除数据
var delete_id="";
$("#dialog_delete").dialog({
    autoOpen: false,
    title: '删除信息',
    width:'270',
    height:'150',
    modal: true,
    buttons: {
        '丢到垃圾站': function () {
        	window.location.href='{:U("delete?id=")}'+delete_id;
   		},
        '彻底删除': function () {
			window.location.href='{:U("foreverdelete?id=")}'+delete_id;
        },
		'取消': function () {
           $("#dialog_delete").dialog("close");
        }
    }
});
function confirm_delete(id){
	delete_id=id;
	$("#dialog_delete").dialog("open");
}
</script>
<include file="./Tpl/Public/footer.html" />